package cn.rongdao.jrkabao.model.main.personal;

import com.mifengkong.frtools.http.request.HttpFunction;

import cn.rongdao.jrkabao.bean.main.personal.PersonInfoBean;
import cn.rongdao.jrkabao.model.api.BaseKaMaoModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 2017/12/29
 */

public class PersonInfoModel extends BaseKaMaoModel {

    public static PersonInfoModel getInstance() {
        return getPresent(PersonInfoModel.class);
    }

    public void execute(Observer<PersonInfoBean> observer) {
        Observable<PersonInfoBean> observable = mServletApi.getPersonInfo(mParams).map(new HttpFunction<PersonInfoBean>());
        toSubscribe(observable, observer);
    }
}
